package com.ibeeking.found.msg.rest.service;

import com.ibeeking.found.msg.service.common.vo.SysMsgRecordVO;

import java.util.List;

/**
 * ISysMsgRecordReceiverService
 * description 系统消息记录
 *
 * @Author ibeeking
 * @Date 2020-12-09 10:54
 */
public interface ISysMsgRecordReceiverService {

    /**
     * 系统消息列表
     *
     * @param
     * @return
     */
    List<SysMsgRecordVO> listByTenantAndReceiverId(Long tenantId, Long receiverId);

    /**
     * 系统消息列表
     *
     * @param
     * @return
     */
    List<SysMsgRecordVO> listUnReadByTenantAndReceiverId(Long tenantId, Long receiverId);

    /**
     * 统计未读消息
     *
     * @param
     * @return
     */
    Integer unReadCount(Long tenantId, Long receiverId);

    /**
     * 根据主键Id查询系统消息
     *
     * @param id
     * @return
     */
    SysMsgRecordVO viewSysMsgRecord(Long id);

    /***
     * 修改状态
     */
    Boolean changeReadStatus(Long id, Integer status);

}
